package com.tanhua.dubbo.api;

import com.tanhua.model.domain.Question;
import com.tanhua.model.domain.Settings;
import com.tanhua.model.domain.User;

/**
 * Created by Fausto on 2021/9/27 19:45
 */
public interface SettingsApi {
    /**
     * 根据用户id查询
     * @param userId
     * @return
     */
    Settings findByUserId(Long userId);

    /**
     * 保存通知
     * @param settings
     */
    void save(Settings settings);

    /**
     * 更新通知
     * @param settings
     */
    void update(Settings settings);

    /**
     * 修改手机号：保存
     */
    void saveNewMobile(Long userId, String mobile);

}
